<%
	//Desc: e-gold Payment Configuration
	//Author: chenshangxuan
	//CreateTime:  2007-01-24
%>
<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeading="e-Gold Payment Gateway Configuration" />

<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoAction(this, 'saveConfigAction');" />
	<probiz:iconBtn btnType="back" url="${ctxPath}/system/paymentMethod.html" />
</content>

<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span>eGold Payment Gateway Configuration</span></li>
	</ul>
</div>

<div class="modify">
	<form class="mainForm" name="configForm" method="post" action="paymentMethod.html">
	<input type="hidden" name="paymentGatewayId" value="${paymentGateway.paymentGatewayId}"/>
		<table  width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.pay.en.shuo"/></h4></th>
			</tr>
			<tr>
				<th colspan="2" >
					<IMG alt="egold" src="<c:url value="/pages/system/${paymentGateway.gatewayIcon}"/>"/>	
					<ul class="intro">
						<li>Please get a account number from <a href="http://www.e-gold.com" target="_blank" style="color:red;text-decoration: underline">e-Gold</a></li>
						<li>Fill the information below</li>
					</ul>
				</th>
			</tr>
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.paymentGateway.en.configItem"/></h4></th>
			</tr>
			<tr>
				<th class="label_width_1"><span>*Account Number:</span></th>
				<td>
					<INPUT class="inputtxt" style="width: 350px" name="account" value="${paymentGateway.configData.account}"/>
				</td>
			</tr>
			<tr>
				<th><span>Merchant Name:</span></th>
				<td>
					<INPUT class="inputtxt" style="width: 350px" name="payee_name" value="${paymentGateway.configData.payee_name}"/>
				</td>
			</tr>
			<tr>
				<th><span>*Payment Units:</span></th>
				<td>
					<select name="payment_units" style="width:200px" class="selecttxt">
						<option value="1" <c:if test="${paymentGateway.configData.payment_units==1}">selected</c:if>>US Dollar (USD)</option>
						<option value="2" <c:if test="${paymentGateway.configData.payment_units==2}">selected</c:if>>Canadian Dollar (CAD)</option>
						<option value="33" <c:if test="${paymentGateway.configData.payment_units==33}">selected</c:if>>French Franc (FRF)</option>
						<option value="41" <c:if test="${paymentGateway.configData.payment_units==41}">selected</c:if>>Swiss Francs (CHF)</option>
						<option value="44" <c:if test="${paymentGateway.configData.payment_units==44}">selected</c:if>>Gt. Britain Pound (GBP)</option>
						<option value="49" <c:if test="${paymentGateway.configData.payment_units==49}">selected</c:if>>Deutschemark (DEM)</option>
						<option value="61" <c:if test="${paymentGateway.configData.payment_units==61}">selected</c:if>>Australian Dollar (AUD)</option>
						<option value="81" <c:if test="${paymentGateway.configData.payment_units==81}">selected</c:if>>Japanese Yen (JPY)</option>
						<option value="85" <c:if test="${paymentGateway.configData.payment_units==85}">selected</c:if>>Euro (EUR)</option>
						<option value="86" <c:if test="${paymentGateway.configData.payment_units==86}">selected</c:if>>Belgian Franc (BEF)</option>
						<option value="87" <c:if test="${paymentGateway.configData.payment_units==87}">selected</c:if>>Austrian Schilling (ATS)</option>
						<option value="88" <c:if test="${paymentGateway.configData.payment_units==88}">selected</c:if>>Greek Drachma (GRD)</option>
						<option value="89" <c:if test="${paymentGateway.configData.payment_units==89}">selected</c:if>>Spanish Peseta (ESP)</option>
						<option value="90" <c:if test="${paymentGateway.configData.payment_units==90}">selected</c:if>>Irish Pound (IEP)</option>
						<option value="91" <c:if test="${paymentGateway.configData.payment_units==91}">selected</c:if>>Italian Lira (ITL)</option>
						<option value="92" <c:if test="${paymentGateway.configData.payment_units==92}">selected</c:if>>Luxembourg Franc (LUF)</option>
						<option value="93" <c:if test="${paymentGateway.configData.payment_units==93}">selected</c:if>>Dutch Guilder (NLG)</option>
						<option value="94" <c:if test="${paymentGateway.configData.payment_units==94}">selected</c:if>>Portuguese Escudo (PTE)</option>
						<option value="95" <c:if test="${paymentGateway.configData.payment_units==95}">selected</c:if>>Finnish Markka (FIM)</option>
						<option value="96" <c:if test="${paymentGateway.configData.payment_units==96}">selected</c:if>>Estonian Kroon (EEK)</option>
						<option value="97" <c:if test="${paymentGateway.configData.payment_units==97}">selected</c:if>>Lithuanian Litas (LTL)</option>
						<option value="8888" <c:if test="${paymentGateway.configData.payment_units==8888}">selected</c:if>>Gram (g)</option>
						<option value="9999" <c:if test="${paymentGateway.configData.payment_units==9999}">selected</c:if>>Troy Ounce (oz)</option>
					</select>
				</td>
			</tr>
			<tr>
				<th><span>*Metal for Payment:</span></th>
				<td>
					<select name="payment_metal_id" style="width:200px" class="selecttxt">
						<option value="0" <c:if test="${paymentGateway.configData.payment_metal_id==0}">selected</c:if>>Buyer's Choice</option>
						<option value="1" <c:if test="${paymentGateway.configData.payment_metal_id==1}">selected</c:if>>Gold</option>
						<option value="2" <c:if test="${paymentGateway.configData.payment_metal_id==2}">selected</c:if>>Silver</option>
						<option value="3" <c:if test="${paymentGateway.configData.payment_metal_id==3}">selected</c:if>>Platinum</option>
						<option value="4" <c:if test="${paymentGateway.configData.payment_metal_id==4}">selected</c:if>>Palladium</option>
					</select>
				</td>
			</tr>
			<tr> 
				<th><span>Test/Live Mode:</span></th>
				<td>
					<select name="testModel" style="width:200px" class="selecttxt">
						<option value="Y" <c:if test="${paymentGateway.configData.testModel=='Y'}">selected</c:if>>Test</option>
						<option value="N" <c:if test="${paymentGateway.configData.testModel=='N'}">selected</c:if>>Live</option>
					</select>
				</td>
			</tr>
			<tr>
				<th valign="top"><span>Payment Status URL:</span></th>
				<td>
					<input type="text" class="inputtxt" style="width: 350px" name="status_url" value="${paymentGateway.configData.status_url}">
					<span>(Optional) Controls whether and how payment status is returned by the egold
	server to the merchant. example:merchant@probiz.cn
					</span>
				</td>
			</tr>
		</table>
	</form>
</div>